﻿using MvvmLib;
using Glue_Data.ViewModels.GData;
using Glue_Data.Views;
using System;
using System.Collections.Generic;
using System.Linq;
using System.Text;
using System.Threading.Tasks;

namespace LaserLineDetectorLib.ViewModel
{
    /// <summary>
    /// 图像ROI参数
    /// </summary>
    public class Vm_ImageRoi_Param : Vm_Base
    {

        /// <summary>
        /// X偏移
        /// </summary>
        [Attribute_GAutoView("X偏移")]
        public GInt32 OffsetX
        {
            get { return _OffsetX; }
            set
            {
                if (_OffsetX != value)
                {
                    _OffsetX = value;
                    this.OnPropertyChanged("OffsetX");
                }
            }
        }
        private GInt32 _OffsetX = new GInt32();

        /// <summary>
        /// Y偏移
        /// </summary>
        [Attribute_GAutoView("Y偏移")]
        public GInt32 OffsetY
        {
            get { return _OffsetY; }
            set
            {
                if (_OffsetY != value)
                {
                    _OffsetY = value;
                    this.OnPropertyChanged("OffsetY");
                }
            }
        }
        private GInt32 _OffsetY = new GInt32();

        /// <summary>
        /// ROI宽度
        /// </summary>
        [Attribute_GAutoView("ROI宽度")]
        public GInt32 RoiWidth
        {
            get { return _RoiWidth; }
            set
            {
                if (_RoiWidth != value)
                {
                    _RoiWidth = value;
                    this.OnPropertyChanged("RoiWidth");
                }
            }
        }
        private GInt32 _RoiWidth = new GInt32() { Value = 1000 };

        /// <summary>
        /// ROI高度
        /// </summary>
        [Attribute_GAutoView("ROI高度")]
        public GInt32 RoiHeight
        {
            get { return _RoiHeight; }
            set
            {
                if (_RoiHeight != value)
                {
                    _RoiHeight = value;
                    this.OnPropertyChanged("RoiHeight");
                }
            }
        }
        private GInt32 _RoiHeight = new GInt32() { Value = 100 };


    }
}
